import request from '@/utils/request'

// 查询sku采购周期列表
export function listPurchaseCycleSku(query) {
  return request({
    url: '/purchase/PurchaseCycleSku/list',
    method: 'get',
    params: query
  })
}
// 查询采购周期列表
export function synData(query) {
  return request({
    url: '/purchase/PurchaseCycleSku/synData',
    method: 'get',
    params: query
  })
}
// 查询sku采购周期详细
export function getPurchaseCycleSku(id) {
  return request({
    url: '/purchase/PurchaseCycleSku/' + id,
    method: 'get'
  })
}

// 新增sku采购周期
export function addPurchaseCycleSku(data) {
  return request({
    url: '/purchase/PurchaseCycleSku',
    method: 'post',
    data: data
  })
}

// 修改sku采购周期
export function updatePurchaseCycleSku(data) {
  return request({
    url: '/purchase/PurchaseCycleSku',
    method: 'put',
    data: data
  })
}

// 删除sku采购周期
export function delPurchaseCycleSku(id) {
  return request({
    url: '/purchase/PurchaseCycleSku/' + id,
    method: 'delete'
  })
}
